<?php
/**
 * GeryEngine
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this release in the file LICENSE
 *
 * @copyright  Copyright (c) 2007 Arjen Brouwer
 * @license    New BSD License
 * @author     Arjen Brouwer
 */

class GeryRuntimeException extends GeryException {
	
	/**
	 * The location where the exception occured
	 *
	 * @var TemplateLocation
	 */
	private $location;
	
	public function __construct($message, TemplateLocation $location) {
		parent::__construct($message);
		
		$this->location = $location;
	}
	
	function getLocation() {
		return $this->location;
	}
}